import { request } from '@/utils/hsj/service/index'

// 查询知识库列表
export function knowledgeList(query) {
  return request({
    url: '/knowledge/knowledge/list',
    method: 'get',
    params: query,
  })
}

// 查询知识库详细
export function getKnowledge(fileId) {
  return request({
    url: '/knowledge/knowledge/' + fileId,
    method: 'get',
  })
}

// 新增知识库
export function insert(data) {
  return request({
    url: '/knowledge/knowledge',
    method: 'post',
    data: data,
  })
}

// 修改知识库
export function updateKnowledge(data) {
  return request({
    url: '/knowledge/knowledge',
    method: 'put',
    data: data,
  })
}

// 删除知识库
export function del(id) {
  return request({
    url: '/knowledge/knowledge/' + id,
    method: 'delete',
  })
}




